package com.ly.wxPay.bean.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 订单-dto
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "订单-dto")
public class WxOrderDTO {

    /**
     * id
     */
    @Schema(description = "id")
    private Long id;

    /**
     * 用户id
     */
    @Schema(description = "用户id")
    private Long userId;

    /**
     * 产品id
     */
    @NotNull(message = "产品id不能为空")
    @Schema(description = "产品id")
    private Long productId;

    /**
     * 订单标题
     */
    // @NotEmpty(message = "订单标题不能为空")
    @Schema(description = "订单标题")
    private String title;

    /**
     * 订单编号
     */
    @Schema(description = "订单编号")
    private String orderNo;

    /**
     * 订单金额
     */
    @NotNull(message = "订单金额不能为空")
    @Schema(description = "订单金额")
    private BigDecimal amount;

    /**
     * 支付方式
     */
    @Schema(description = "支付方式")
    private String payType;


    /**
     * 地址
     */
    @Schema(description = "地址")
    private String remoteAddr;
}
